<html>
<head>
<title>
Netlab Reference Manual netpak
</title>
</head>
<body>
<H1> netpak
</H1>
<h2>
Purpose
</h2>
Combines weights and biases into one weights vector.

<p><h2>
Synopsis
</h2>
<PRE>
w = netpak(net)
</PRE>


<p><h2>
Description
</h2>
<CODE>w = netpak(net)</CODE> takes a network data structure <CODE>net</CODE> and
combines the component weight matrices  into a single row
vector <CODE>w</CODE>. The facility to switch between these two
representations for the network parameters is useful, for example, in
training a network by error function minimization, since a single
vector of parameters can be handled by general-purpose optimization
routines.  This function also takes into account a <CODE>mask</CODE> defined
as a field in <CODE>net</CODE> by removing any weights that correspond to
entries of 0 in the mask.

<p><h2>
See Also
</h2>
<CODE><a href="net.htm">net</a></CODE>, <CODE><a href="netunpak.htm">netunpak</a></CODE>, <CODE><a href="netfwd.htm">netfwd</a></CODE>, <CODE><a href="neterr.htm">neterr</a></CODE>, <CODE><a href="netgrad.htm">netgrad</a></CODE><hr>
<b>Pages:</b>
<a href="index.htm">Index</a>
<hr>
<p>Copyright (c) Ian T Nabney (1996-9)


</body>
</html>